package com.l024.android_ljl;

import com.l024.android_ljl.databinding.ActivityMainBinding;
import com.l024.android_ljl.view.main.fragment.HomeFragment;
import com.l024.android_ljl.view.main.fragment.MyFragment;
import com.quantstack.llcommonlibrary.base.BaseNullActivity;

/**
 * 首页
 */
public class MainActivity extends BaseNullActivity<ActivityMainBinding> {

    @Override
    public int getLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    public void afterCreate() {
        mViewDataBind.bottomBar.setContainer(R.id.fl_container)
                .setTitleSize(16)
                .setTitleBeforeAndAfterColor("#999999", "#F56600")
                .addItem(HomeFragment.class,
                        "管理",
                        R.drawable.home,
                        R.drawable.home)
                //.addItem(StudyFragment.class,
                //        "学习",
                //        R.drawable.home,
                //        R.drawable.home)
                .addItem(MyFragment.class,
                        "我的",
                        R.drawable.home,
                        R.drawable.home)
                .build();
    }
}